package com.snowy.framework.common.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 登录用户对象
 */
@Getter
@Setter
@ApiModel(value = "登录用户对象",description = "登录用户对象")
public abstract class SaBaseLoginUser {

    /** id */
    @ApiModelProperty(value = "小程序id")
    private String userId;

    @ApiModelProperty(value = "平台用户id")
    private String platformUserId;

    /** 姓名 */
    @ApiModelProperty(name = "姓名")
    private String userName;

    /** 组织id */
    @ApiModelProperty(name = "组织id")
    private String orgId;

    /** 组织名称 */
    @ApiModelProperty(name = "组织编码")
    private String orgCode;

    /** 组织名称 */
    @ApiModelProperty(name = "组织名称")
    private String orgName;

    /** 权限码集合 */
    @ApiModelProperty(name = "权限码集合")
    private List<String> permissionCodeList;

    /** 角色码集合 */
    @ApiModelProperty(name = "角色码集合")
    private List<String> roleCodeList;

    /** 数据范围集合 */
    @ApiModelProperty(name = "数据范围集合")
    private List<DataScope> dataScopeList;


    /**
     * 数据范围类
     *
     **/
    @Getter
    @Setter
    public static class DataScope {
        private List<String> dataScope;
    }
}
